package com.wanxi.pack;

import java.util.Arrays;

/**
 * 封装
 */
public class MyPackage {
    public static void main(String[] args) {
        Student[] arr = new Student[5];
        int[] ids = {1, 2, 4, 5, 6};
        for (int i = 0; i < arr.length; i++) {
            arr[i] = new Student(ids[i], "张三", 23, "156000000", "北京");
        }
        System.out.println(Arrays.toString(arr));
//        Student student1=new Student(1,"张三",23,"156000000","北京");
//        Student student2=new Student(1,"张三",23,"156000000","北京");
//        Student student3=new Student(1,"张三",23,"156000000","北京");
//        Student student4=new Student(1,"张三",23,"156000000","北京");
//        Student student5=new Student(1,"张三",23,"156000000","北京");
        Student student=new Student();

    }
}
